package org.mics.enduser.request;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 忘记密码请求
 * @author mics
 * @date 2020年6月15日
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "忘记密码请求")
public class ForgetRequest {

    @Size(min = 4, max = 32, message = "账号长度4-32位")
    @NotBlank(message = "注册账号不能为空")
    @Schema(description = "注册账号",required = true)
    private String account;

    /**
     * 新密码
     */
    @Schema(description = "新密码",required = true)
    @Size(min = 8, max = 32, message = "密码长度为8-32位")
    @NotBlank(message = "新密码不能为空")
    private String password;

    /**
     * 短信校验
     */
    @Schema(description = "短信校验",required = true)
    @Valid
    @NotNull(message = "校验码不能为空")
    private VerificationCodeCheckRequest verificationCodeCheckRequest;

    
}
